// 视图组件
const view = {
    tabs: () => import('@/layouts/tabs'),
    blank: () => import('@/layouts/BlankView'),
    page: () => import('@/layouts/PageView')
}

// 路由组件注册
const routerMap = {
    login: {
        authority: '*',
        path: '/login',
        component: () => import('@/pages/login')
    },
    root: {
        path: '/',
        name: '首页',
        redirect: '/login',
        component: view.tabs
    },
    dashboard: {
        name: 'Dashboard',
        component: view.blank
    },
    analysis: {
        name: '分析页',
        component: () => import('@/pages/dashboard/analysis')
    },
    system: {
        name: '系统管理',
        component: view.blank
    },
    user: {
        name: '用户管理',
        component: () => import('@/pages/user/index')
    },
    role: {
        name: '角色管理',
        component: () => import('@/pages/role/index')
    },
    menu: {
        name: '菜单管理',
        component: () => import('@/pages/menu/index')
    },
    dict: {
        name: '字典管理',
        component: () => import('@/pages/dict/index')
    },
    config: {
        name: '配置管理',
        component: () => import('@/pages/config/index')
    },
    notice: {
        name: '消息公告',
        component: view.blank
    },
    inform: {
        name: '站内消息',
        component: () => import('@/pages/notice/inform/index')
    },
    email: {
        name: '邮件消息',
        component: () => import('@/pages/notice/email/index')
    },
    sms: {
        name: '短信消息',
        component: () => import('@/pages/notice/sms/index')
    },
    logger: {
        name: '系统日志',
        component: () => import('@/pages/notice/logger/index')
    },
    quartz: {
        name: '定时任务',
        component: () => import('@/pages/notice/quartz/index')
    },
    exam: {
        name: '考试配置',
        component: view.blank
    },
    app: {
        name: 'App应用',
        component: () => import('@/pages/exam/app/index')
    },
    swiper: {
        name: '轮播图',
        component: () => import('@/pages/exam/swiper/index')
    },
    exception: {
        name: '异常页',
        icon: 'warning',
        component: view.blank
    },
    exp403: {
        authority: '*',
        name: 'exp403',
        path: '403',
        component: () => import('@/pages/exception/403')
    },
    exp404: {
        name: 'exp404',
        path: '404',
        component: () => import('@/pages/exception/404')
    },
    exp500: {
        name: 'exp500',
        path: '500',
        component: () => import('@/pages/exception/500')
    },
}
export default routerMap

